/** 用户相关 */
import request from '@/utils/request'

// 修改接单手机号
export function orderMobile(data) {
	return request({
		url: '/technicianapp/my.index/orderMobile',
		method: 'post',
		data
	})
}

// 打赏金额转余额
export function rewardBalance(params) {
	return request({
		url: '/technicianapp/my.index/reward_balance',
		method: 'get',
		params
	})
}

// 打赏统计
export function reward(params) {
	return request({
		url: '/technicianapp/my.index/rewardStatistics',
		method: 'get',
		params
	})
}	

// 打赏记录
export function rewardList(params) {
	return request({
		url: '/technicianapp/my.index/reward_log',
		method: 'get',
		params
	})
}

// 申请签证
export function visa(data) {
	return request({
		url: '/technicianapp/my.index/setQualifications',
		method: 'post',
		data
	})
}

// 签证列表
export function visaList(params) {
	return request({
		url: '/technicianapp/my.index/visaList',
		method: 'get',
		params
	})
}

// 签证详情
export function visaDetail(params) {
	return request({
		url: '/technicianapp/my.index/visaDetails',
		method: 'get',
		params
	})
}

// 检查是否满足解约条件
export function terminationCheck(data) {
	return request({
		url: '/technicianapp/my.index/terminationCheck',
		method: 'post',
		data
	})
}

// 解约
export function termination(data) {
	return request({
		url: '/technicianapp/my.index/termination',
		method: 'post',
		data
	})
}

// 押金记录
export function cashPledgeList(data) {
	return request({
		url: '/technicianapp/my.index/deposit_log',
		method: 'post',
		data
	})
}

// 发布动态
export function trends(data) {
	return request({
		url: '/technicianapp/my.Trends/moment_add',
		method: 'post',
		data
	})
}

// 动态详情
export function trendsDetail(params) {
	return request({
		url: '/technicianapp/my.Trends/moment_details',
		method: 'get',
		params
	})
}

// 动态列表
export function trendsList(params) {
	return request({
		url: '/technicianapp/my.Trends/my_moment',
		method: 'get',
		params
	})
}

// 删除动态
export function trendsRemove(data) {
	return request({
		url: '/technicianapp/my.Trends/moment_delete',
		method: 'post',
		data
	})
}

// 问题反馈
export function feed(data) {
	return request({
		url: '/technicianapp/my.Opinion/add',
		method: 'post',
		data
	})
}

// 问题反馈列表
export function feedList(params) {
	return request({
		url: '/technicianapp/my.Opinion/list',
		method: 'get',
		params
	})
}

// 问题反馈类型
export function feedDict(params) {
	return request({
		url: '/technicianapp/my.Opinion/index',
		method: 'get',
		params
	})
}

// 问题反馈类型
export function signAgreement(params) {
	return request({
		url: '/technicianapp/my.index/sign_tcp',
		method: 'get',
		params
	})
}